 <!DOCTYPE html>
 <html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>网易云音乐</title>
  <link rel="stylesheet" href="./css/reset.css">
  <link rel="stylesheet" href="./css/common.css">
 </head>
 <style>
   .top {
    height: 70px;
    background-color: #242424;
    box-sizing: border-box;
    border-bottom: 1px solid #000;
   }
   .topbar {
    display: flex;
    justify-content:space-between  ;
    height: 69px;
    line-height: 69px;
   }

   .topbar .bar-left {
    display: flex;
   }

   .topbar .bar-left .logo {
    background-image: url(./images/topbar_sprite.png)
    
   }

   .topbar .bar-left .logo a {
    display: block;
    width: 157px;
    padding-right: 20px;
    text-indent: -9999px;
    
   }

   .topbar .bar-left .list {
    display: flex;
   }

   .topbar .bar-left .list .item {
    position: relative;
    display: flex;
    padding: 0 19px;
    font-size: 14px;
    color: #ccc;
   }

   .topbar .bar-left .list .item:hover ,
   .topbar .bar-left .list .item.active {
    color: #fff;
    background-color: #000;

   }

   .topbar .bar-left .list .item.active::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 7px;
    background:url(./images/topbar_sprite.png) no-repeat  -226px 2px;
    left: 0;
    right: 0;
    margin: 0 auto;
    bottom: -1px;
   }

   .topbar .bar-left .list .item .icon-hot {
    position: absolute;
    top: 16px;
    right: -5px;
   }

   /* 布局右侧 */
   .topbar .bar-right {
    display: flex;
    align-items: center;
    color: #fff;
    padding-right: 20px;
   }

   .topbar .bar-right .login a {
    color: #778878;
   }
   .topbar .bar-right .login:hover a {
    color: #ccc;
   }

   .topbar .bar-right .login a:hover {
    color: #778878;
    text-decoration: underline;
   }

   .topbar .bar-right .anthor a {
     display: inline-block;
     box-sizing: border-box;
     margin: 0 20px;
     width: 90px;
     height: 32px;
     line-height: 32px;
     text-align: center;
     color: #ccc;
     border: 1px solid #4f4f4f;
     border-radius: 20px;
   }

   .topbar .bar-right .anthor a:hover {
     border-color: #ccc;
     color: #fff;
   }

   .topbar .bar-right .search {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding-left: 25px;
    width: 158px;
    height: 32px;
    line-height: 32px;
    border-radius: 30px;
    background:  #fff url(./images/topbar_sprite.png) no-repeat 0 -99px;
   }

   .topbar .bar-right .search input {
     margin-top: 3px;
     width: 115px;
     font-size: 12px;
   }

   .topbar .bar-right .search input::placeholder {
     color: #9B9B9B;
   }

   /* nav */
   .nav {
     height: 35px;
     line-height: 35px;
     background-color:#C20C0C ;
     box-sizing: border-box;
     border-bottom: 1px solid #a41100;
   }
   .navbar {
    padding-left: 180px;
   box-sizing: border-box;
   }
  
  .navbar .list {
    display: flex;
  }

  
  .navbar .list .item {
    display: block;
    color: #fff;
  }

  .navbar .list .item  span {
    margin: 7px 20px ;
    padding: 4px 13px;
    border-radius: 20px;
  }
  .navbar .list .item:hover span,
  .navbar .list .item .active span {
    background-color: #9B0909;
  }

 </style>
 <body>
<div class="header">
  <div class="top">
    <div class="topbar wrapper_1100">
      <div class="bar-left">
        <h1 class="logo">
          <a href="#">网易云音乐</a>
        </h1>
        <ul class="list">
          <li><a href="#" class="item active">发现音乐</a></li>
          <li><a href="#" class="item">我的音乐</a></li>
          <li><a href="#" class="item">关注</a></li>
          <li><a href="#" class="item">商城</a></li>
          <li><a href="#" class="item">音乐人</a></li>
          <li><a href="#" class="item">云推歌</a></li>
          <li>
            <a href="#" class="item">
              下载客户端
              <i class="icon-hot topbar_sprite topbar_icon_hot"></i>
            </a>
          </li>
        </ul>
      </div>
      <div class="bar-right">
        <div class="search">
          <input type="text" placeholder="音乐/视频/电台/用户">
        </div>
        <div class="anthor">
          <a href="#">创作者中心</a>
        </div>
        <div class="login">
          <a href="#">登录</a>
        </div>
      </div>
    </div> 
  </div>
  <div class="nav">
    <div class="navbar wrapper_1100">
      <ul class="list">
        <li ><a class="item" class="active" href="#"><span>推荐</span></a></li>
        <li ><a class="item" href="#"><span>排行榜</span></a></li>
        <li ><a class="item" href="#"><span>歌单</span></a></li>
        <li ><a class="item" href="#"><span>主播电台</span></a></li>
        <li ><a class="item" href="#"><span>歌手</span></a></li>
        <li ><a class="item" href="#"><span>新碟上架</span></a></li>
      </ul>

    </div>
  </div>
</div>
  
 </body>
 </html>